---
title: usePathname
---

Returns a string that represents the current [pathname](https://developer.mozilla.org/en-US/docs/Web/API/URL/pathname).

It takes no arguments and will update every time the route changes.
